<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>

    var user = {
        name:"秦僵",
        age:20,
        run:function () {
            console.log(this.name + " run ...");
        }
    };

    var Bird = {
      fly: function () {
          console.log(this.name + " fly...");
      }
    };

    var xiaoming = {
      name:"小明"
    };

    xiaoming.__proto__ = Bird;

    //小明的原型是user
    xiaoming.__proto__ = user;


</script>
</body>
</html>